package cn.t.web.sku;


import cn.t.core.controller.BaseController;
import cn.t.core.mode.PageInfoDTO;
import cn.t.core.mode.PageQueryDTO;
import cn.t.dto.sku.CustomerSkuDTO;
import cn.t.facade.sku.CustomerSkuFacade;
import cn.t.request.CustomerSkuReq;
import cn.t.vo.sku.CustomerSkuVO;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 客户商品映射表服务入口
 *
 * @author s
 * @since 2024-06-12
 */
@Slf4j
@RestController
@RequestMapping("customerSku")
// "客户商品映射服务")
@AllArgsConstructor
public class CustomerSkuController extends BaseController<CustomerSkuDTO, CustomerSkuFacade> {

    /**
     * 客户商品映射分页查询接口(商品编辑->客户物料编号映射)
     */
    @PostMapping(value = "/page")
    public PageInfoDTO<CustomerSkuVO> page(@Validated  @RequestBody PageQueryDTO<CustomerSkuReq> req) {
        return facade.page(req);
    }
}

